package com.example.config.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

//@WebListener
public class MyListener implements ServletRequestListener {

    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        System.out.println("------ 销毁 MyListener ------");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("------ 初始化 MyListener ------");
    }
}
